//
//  UserInfo.h
//  Core
//
//  Created by Cuong Doan on 3/4/13.
//  Copyright (c) 2013 Cuong Doan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"
#import "DatabaseManager.h"

@interface UserInfo : NSObject

@property (nonatomic, assign) int USERID;

@property (nonatomic, copy) NSMutableString *UserName;

//
// state of user, if ready = false, user must finish some setting before start using the app
//
@property (nonatomic, assign) bool Ready;

//
// state of user, app will auto log in with activated user profile
//
@property (nonatomic, assign) bool Activated;

//
// init and get user info with specific user id
// @param: userID
//
-(id)initWithID: (int)userID;

//
// insert new user
//
-(void)insertUser;

//
// update info of specific user
//
-(void)updateUser;

//
// get activated user's id
//
+(int)getActivatedUserID;

@end
